#!/bin/ksh

mpstat 1 10 >3.txt

while read pid
do
  echo $pid
done < 3.txt

awk '{print $1,$3,$4;}' 3.txt
